package com.aclyyx.mi.display.server;


public class Param {
	
	public long runtime = 0;
	
	/** 常量，横屏标志 **/
	public final static int HVFLAG_HORIZONTAL	= 0;
	/** 常量，竖屏标志 **/
	public final static int HVFLAG_VERTICAL		= 1;
	/** 常量，坐标校准间隔时间 **/
	public final static int COMPARE_PERIOD		= 2000;
	/** 常量，计算坐标间隔时间 **/
	public final static int COMPUTE_PERIOD		= 30;
	
//	public final static int DEFAULT_MY_WIDTH	= 350;
//	public final static int DEFAULT_MY_HEIGHT	= 525;
	public final static int DEFAULT_MY_WIDTH	= 500;
	public final static int DEFAULT_MY_HEIGHT	= 888;
	
	public final static int RUN_TYPE_LOCAL	= 0;
	public final static int RUN_TYPE_SERVER	= 1;
	public final static int RUN_TYPE_CLIENT	= 2;
	
	public final static String DPX_480X854	= "854";
	public final static String DPX_480X800	= "800";
	public final static String DPX_320X480	= "480";
	public final static String DPX_240X320	= "320";

	private boolean runFlag;
	private boolean startFlag;
	private boolean goFlag;
	
	private int port = 8080;
	

	/** 手机屏幕分辨率类型 **/
	private String dpx = DPX_480X854;
	/** 显示样式的类型 **/
	private String stlye = "ZouMaDeng1";
	/** 横竖屏标志 **/
	private int hvFlag = HVFLAG_HORIZONTAL;
	/** 文字 **/
	private String s = "Power by aclyyx";
	/** 字体大小 **/
	private int size = 400;
	/** 米字屏总行数 **/
	private int row = 1;
	/** 米字屏总列数 **/
	private int column = 1;
	/** 本机所在行 **/
	private int myRow = 0;
	/** 本机所在列 **/
	private int myColumn = 0;
	/** 字体颜色 **/
	private int fcolor = 0;
	/** 背景色 **/
	private int bcolor = 1;
	/** 显示文字的宽度  **/
	private int width;
	/** 显示文字的高度  **/
	private int height;

	public boolean isRunFlag() {
		return runFlag;
	}
	public void setRunFlag(boolean runFlag) {
		this.runFlag = runFlag;
	}
	public boolean isGoFlag() {
		return goFlag;
	}
	public void setGoFlag(boolean goFlag) {
		this.goFlag = goFlag;
	}
	public String getStlye() {
		return stlye;
	}
	public void setStlye(String stlye) {
		this.stlye = stlye;
	}
	public boolean isStartFlag() {
		return startFlag;
	}
	public void setStartFlag(boolean startFlag) {
		this.startFlag = startFlag;
	}
	public int getPort() {
		return port;
	}
	public void setPort(int port) {
		this.port = port;
	}
	public String getDpx() {
		return dpx;
	}
	public void setDpx(String dpx) {
		this.dpx = dpx;
	}
	public int getHvFlag() {
		return hvFlag;
	}
	public void setHvFlag(int hvFlag) {
		this.hvFlag = hvFlag;
	}
	public String getS() {
		return s;
	}
	public void setS(String s) {
		this.s = s;
	}
	public int getSize() {
		return size;
	}
	public void setSize(int size) {
		this.size = size;
	}
	public int getRow() {
		return row;
	}
	public void setRow(int row) {
		this.row = row;
	}
	public int getColumn() {
		return column;
	}
	public void setColumn(int column) {
		this.column = column;
	}
	public int getMyRow() {
		return myRow;
	}
	public void setMyRow(int myRow) {
		this.myRow = myRow;
	}
	public int getMyColumn() {
		return myColumn;
	}
	public void setMyColumn(int myColumn) {
		this.myColumn = myColumn;
	}
	public int getFcolor() {
		return fcolor;
	}
	public void setFcolor(int fcolor) {
		this.fcolor = fcolor;
	}
	public int getBcolor() {
		return bcolor;
	}
	public void setBcolor(int bcolor) {
		this.bcolor = bcolor;
	}
	public int getWidth() {
		return width;
	}
	public void setWidth(int width) {
		this.width = width;
	}
	public int getHeight() {
		return height;
	}
	public void setHeight(int height) {
		this.height = height;
	}
	@Override
	public Object clone() throws CloneNotSupportedException {
		Param p = new Param();
		
		p.stlye			= this.stlye;
		p.hvFlag		= this.hvFlag;
		p.s				= this.s;
		p.size			= this.size;
		p.row			= this.row;
		p.column		= this.column;
		p.myRow			= this.myRow;
		p.myColumn		= this.myColumn;
		p.port			= this.port;
		p.fcolor		= this.fcolor;
		p.bcolor		= this.bcolor;
		p.dpx			= this.dpx;
		
		return p;
	}
}
